<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>阅读题目</title>
<style>
.cl{width:95%; margin:60px auto;}
.ans{ width:1200px; margin:60px auto;}
</style>
    <script src="/cn/js/jquery-1.12.2.min.js"></script>
<script type="text/javascript" src="/ueditor/ueditor.config.js"></script>
<!-- 编辑器源码文件 -->
<script type="text/javascript" src="/ueditor/ueditor.all.min.js"></script>
<!-- 编辑器公式插件 -->
<script type="text/javascript" charset="utf-8" src="/ueditor/kityformula-plugin/addKityFormulaDialog.js"></script>
<script type="text/javascript" charset="utf-8" src="/ueditor/kityformula-plugin/getKfContent.js"></script>
<script type="text/javascript" charset="utf-8" src="/ueditor/kityformula-plugin/defaultFilterFix.js"></script>
</head>
<body>

<div id="wrapper" class="cl">
    <div style="margin-bottom: 10px">
        题号<input class="num" type="text" placeholder="输入题号">
        <button type="button" class="update">生成</button>
        <input id="input2" style="width: 400px">
    </div>
    <form action="">
        <div class="controls">
            <textarea style="width: 800px;height: 300px;" id="content"></textarea>
        </div>
    </form>
</div>


<script type="text/plain" id="j_ueditorupload"></script>
</body>
</html>

<script>

    $('.update').click(function () {
        var num = $('.num').val();
        if($.trim(num)==''){
            alert('请填写题号');
            return false;
        }
        var content = '<span class="answer-fill" data-id="'+num+'">'+num+'</span>';
        $('#input2').val(content)
    })

</script>




